<!doctype html>
<title>Compound if statements</title>

<script>

var animal = "cat";
	
if(animal === "horse")
{
	console.log("It's a horse");
}
else if(animal === "mouse")
{
	console.log("It's a mouse");
}
else if(animal === "cat")
{
	console.log("It's a cat");
}
else
{
	console.log("I don't know what it is");
}
	
</script>